/*
 * src/algorithms/com_plan.c
 *
 * Harry Wei <harryxiyou@gmail.com> 2011 (C)
 */

#include <stdio.h>
#include <stdint.h>
#include <glib.h>
#include <stdlib.h>

uint32_t com_plan_table(uint32_t athlete_amounts)
{
#if 0
	uint32_t ret = 0;

	uint32_t **table = (uint32_t **)g_malloc0(sizeof(uint32_t *) * athlete_amounts);
	if (!(*table)) {
		g_message("%s -- Allocate Error!\n", __func__);
		ret = -1;
		goto out;
	}
	uint32_t i = 0;
	uint32_t tmp = 0;
	for (i = 0; i < athlete_amounts; i++) {
		table[i] = (uint32_t *)g_malloc0(sizeof(uint32_t) * athlete_amounts);
		if (!table[i]) {
			g_message("%s -- Allocate Error!\n", __func__);
			for (tmp = 0; tmp < i; tmp++) {
				g_free(table[tmp]);
			}
			ret = -1;
			goto out2;
		}
	}
	tmp = 0;
	while (tmp < )
out1:
	for (i = 0; i < athlete_amounts; i++) {
		g_free(table[i])
	}
out2:
	g_free(*table);
out:
	return ret;
#endif
}
